window.addEventListener('load', function() {
    // var swiper = new Swiper('.swiper-container', {
    //     pagination: {
    //         el: '.swiper-pagination',
    //     },
    // });
    // var swiper = new Swiper('.swiper-container', {
    //     // spaceBetween: 30,
    //     centeredSlides: true,
    //     autoplay: {
    //         delay: 2500,
    //         disableOnInteraction: false,
    //     },
    //     pagination: {
    //         el: '.swiper-pagination',
    //         clickable: true,
    //     },
    //     navigation: {
    //         nextEl: '.swiper-button-next',
    //         prevEl: '.swiper-button-prev',
    //     },
    // });
    var swiper = new Swiper('.swiper-container', {
        // 图片间隔
        // spaceBetween: 30,
        // 渐变
        effect: 'fade',
        // 是否循环
        loop: true,
        // 自动播放
        autoplay: {
            // 间隔时间
            delay: 2500,
            disableOnInteraction: false,
        },
        // 主体部分
        pagination: {
            el: '.swiper-pagination',
            //点击小圆点 是否切换
            clickable: true,
        },
        //两边按钮
        // navigation: {
        //     nextEl: '.swiper-button-next',
        //     prevEl: '.swiper-button-prev',
        // },
    });
    // var swiper = new Swiper('.swiper-container', {
    //     slidesPerView: 1,
    //     spaceBetween: 30,
    //     loop: true,
    //     pagination: {
    //       el: '.swiper-pagination',
    //       clickable: true,
    //     },
    //     navigation: {
    //       nextEl: '.swiper-button-next',
    //       prevEl: '.swiper-button-prev',
    //     },
    //   });
})